Skip to content

module: resolve format for all situations with auto module detection on#53044

Closed
dygabo wants to merge 4 commits intonodejs:mainfrom
dygabo:fix-for-unflagging-module-format-detection
Closed

module: resolve format for all situations with auto module detection on#53044
dygabo wants to merge 4 commits intonodejs:mainfrom
dygabo:fix-for-unflagging-module-format-detection

Conversation

@dygabo
Copy link
Member

@dygabo dygabo commented May 18, 2024

triggered by #53015
solves: #53016

this should be a consistent fix to always resolve the module format correctly.
Enabling module detection by default made a few other tests need some adjustments because in this case they don't generate errors anymore. e.g. test-esm-cjs-exports.js instead of error becasue a .mjs imports a .js with ESM syntax it now successfully imports it and generates the warning that this should be fixed to avoid the performance penalty.

Kindly please review and let me know what you think (if changes are necessary).

make test && make lint => green

Co-authored-by: @GeoffreyBooth

@nodejs/loaders

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c++ Issues and PRs that require attention from people who are familiar with C++. esm Issues and PRs related to the ECMAScript Modules implementation. loaders Issues and PRs related to ES module loaders needs-ci PRs that need a full CI run.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants